package mt.filter.clock;

import java.util.ArrayList;
import java.util.List;

public class DummyClock implements Clock {
	private double tick = 0;
	private List<ClockAware> clockAwareList = new ArrayList<ClockAware>();
	
	@Override
	public void addClockAware(ClockAware clockAware) {
		this.clockAwareList.add(clockAware);
	}
	
	@Override
	public double getTime() {
		return tick;
	}

	@Override
	public void start() {

	}
	
	public void incrementTick(){
		tick++;
		for(ClockAware clockAware : clockAwareList){
			clockAware.tick();
		}
	}

}
